package day03.proxy;

public class TargetProxy {

    private Target target;

    // 静态代理
    public void show() {
        try {
            System.out.println("before收费1");
            target.show();
            System.out.println("after收费1");
        } catch (Exception e) {
            System.out.println("Catch收费1");
        } finally {
            System.out.println("finally收费1");
        }

    }

    public Target getTarget() {
        return target;
    }

    public void setTarget(Target target) {
        this.target = target;
    }
}
